/*******************************************************************************
 * Copyright (c) 2011 EclipseDevX.org and others.
 * 
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at:
 * 
 *     http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/

package org.eclipsedevx.appengine.usage;

import java.util.Date;

import com.google.appengine.api.datastore.Entity;

/**
 * 
 */
public class User {
	public String devxVersion;
	public String eclipseVersion;
	
	public String machineId;
	
	public String osName;
	public String osVersion;
	
	public Date uploadTime;
	
	public String userCountry;
	public String userLanguage;
	
	public User(Entity entity) {
		devxVersion = (String)entity.getProperty("devx.version");
		eclipseVersion = (String)entity.getProperty("eclipse.version");
		
		machineId = (String)entity.getProperty("machine.id");
		
		osName = (String)entity.getProperty("os.name");
		osVersion = (String)entity.getProperty("os.version");
		
		uploadTime = (Date)entity.getProperty("upload.time");
		
		userCountry = (String)entity.getProperty("user.country");
		userLanguage = (String)entity.getProperty("user.language");
	}
	
}